projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cad69e
)
gtk/gtkbox.c: use accessor functions to access GtkWidget
author
Javier Jardón
<jjardon@gnome.org>
Wed, 11 Aug 2010 21:17:44 +0000
(23:17 +0200)
committer
Javier Jardón
<jjardon@gnome.org>
Sun, 22 Aug 2010 20:56:16 +0000
(22:56 +0200)
gtk/gtkbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbox.c
b/gtk/gtkbox.c
index 1f9b63708d8c635f4ca27c96309b6000624ed4ab..3abf7176908f1916069d87e8d620b2bcebea87b9 100644
(file)
--- a/
gtk/gtkbox.c
+++ b/
gtk/gtkbox.c
@@
-421,7
+421,7
@@
gtk_box_size_allocate (GtkWidget *widget,
gint child_size;
-
widget->allocation = *allocation
;
+
gtk_widget_set_allocation (widget, allocation)
;
count_expand_children (box, &nvis_children, &nexpand_children);
@@
-779,7
+779,7
@@
gtk_box_pack (GtkBox *box,
g_return_if_fail (GTK_IS_BOX (box));
g_return_if_fail (GTK_IS_WIDGET (child));
- g_return_if_fail (
child->parent
== NULL);
+ g_return_if_fail (
gtk_widget_get_parent (child)
== NULL);
child_info = g_new (GtkBoxChild, 1);
child_info->widget = child;